/*
 Navicat Premium Data Transfer

 Source Server         : LocalDB
 Source Server Type    : SQL Server
 Source Server Version : 15004153
 Source Host           : (localdb)\MSSQLLocalDB:1433
 Source Catalog        : OcelotSettings
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 15004153
 File Encoding         : 65001

 Date: 07/07/2023 17:31:00
*/


-- ----------------------------
-- Table structure for Project
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[Project]') AND type IN ('U'))
	DROP TABLE [dbo].[Project]
GO

CREATE TABLE [dbo].[Project] (
  [Id] int  IDENTITY(1,1) NOT NULL,
  [ProjectName] nvarchar(100) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [OrderIndex] int  NOT NULL,
  [Enabled] bit  NOT NULL,
  [CreateTime] bigint  NOT NULL,
  [UpdateTime] bigint  NOT NULL
)
GO

ALTER TABLE [dbo].[Project] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'主键Id',
'SCHEMA', N'dbo',
'TABLE', N'Project',
'COLUMN', N'Id'
GO

EXEC sp_addextendedproperty
'MS_Description', N'项目名称',
'SCHEMA', N'dbo',
'TABLE', N'Project',
'COLUMN', N'ProjectName'
GO

EXEC sp_addextendedproperty
'MS_Description', N'排序字段',
'SCHEMA', N'dbo',
'TABLE', N'Project',
'COLUMN', N'OrderIndex'
GO

EXEC sp_addextendedproperty
'MS_Description', N'启用',
'SCHEMA', N'dbo',
'TABLE', N'Project',
'COLUMN', N'Enabled'
GO

EXEC sp_addextendedproperty
'MS_Description', N'创建时间',
'SCHEMA', N'dbo',
'TABLE', N'Project',
'COLUMN', N'CreateTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'编辑时间',
'SCHEMA', N'dbo',
'TABLE', N'Project',
'COLUMN', N'UpdateTime'
GO

EXEC sp_addextendedproperty
'MS_Description', N'项目表',
'SCHEMA', N'dbo',
'TABLE', N'Project'
GO


-- ----------------------------
-- Auto increment value for Project
-- ----------------------------
DBCC CHECKIDENT ('[dbo].[Project]', RESEED, 78)
GO


-- ----------------------------
-- Primary Key structure for table Project
-- ----------------------------
ALTER TABLE [dbo].[Project] ADD CONSTRAINT [PK__Project__3214EC07460CCCF6] PRIMARY KEY CLUSTERED ([Id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

